<?php

	// +----------------------------------------------------------------------
	// | 推荐位模型
	// +----------------------------------------------------------------------
	// | Copyright (c) 2015-2024 http://www.yicmf.com, All rights reserved.
	// +----------------------------------------------------------------------
	// | Author: 微尘 <yicmf@qq.com>
	// +----------------------------------------------------------------------

	namespace app\event\cms;

	use app\common\event\Base;
	use app\event\cms\Document as DocumentEvent;
	use app\model\cms\Position as PositionModel;

	class Position extends Base
	{

		public function lists($type = 'hot', $category_id = null, $num = 5)
		{
			return DocumentEvent::lists($category_id, $num, 'view DESC');
		}

		/**
		 * 推荐位信息
		 */
		public static function getPosition()
		{
			return PositionModel::where('status', 1)->column('id,title');
		}



	}
